package com.bensonbasement.snorflux.commands;

import com.bensonbasement.snorflux.utils.Direction;

public class DirectionAPFormula implements IAPFormula {
	
	private final int multiplier;
	
	public DirectionAPFormula(int multiplier) {
		this.multiplier = multiplier;
	}
	
	@Override
	public int calculateAPCost(TargetMap targetsSoFar) {
		Direction dir = targetsSoFar.getDirectionTarget(TargetRequest.DIRECTIONREQUEST.getTargetName());
		return dir.getBaseCost()*multiplier;
	}
}
